mod errors;
mod clickhouse;
mod mysql;
mod app_conf;
mod imp_conf;
mod join_conf;
mod sqls;
mod date_parser;
pub use app_conf::*;
pub use imp_conf::*;
pub use errors::*;
pub use sqls::*;
pub use clickhouse::*;
pub use join_conf::*;
pub use mysql::*;
pub use date_parser::*;



// let file_appender = tracing_appender::rolling::daily("/some/directory", "filename_prefix.log");
// let (non_blocking, _guard) = tracing_appender::non_blocking(file_appender);
// tracing_subscriber::fmt()
//     .with_writer(non_blocking)
//     .init();
// let timer = tracing_subscriber::fmt::time::ChronoLocal::new("%Y-%m-%d %H:%M:%S %:z".into()); // 自定义格式
// let timer = tracing_subscriber::fmt::time::LocalTime::new(time::macros::format_description!("[year]-[month]-[day] [hour]:[minute]:[second]"));
// tracing_subscriber::registry()
//    .with(
//       tracing_subscriber::fmt::layer()
//             .pretty()
//             .with_timer(timer)
//             .with_file(true)
//             .with_line_number(true)
//             .with_ansi(true)
//             .with_target(true)
//             .with_span_events(FmtSpan::FULL),
//    )
//    .init();
// Config 配置